// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import 'babel-polyfill'
import Vue from 'vue'
import App from './App'
import router from './router'
import api from 'api/axios'
import store from './store'
import iView from 'iview'
import 'iview/dist/styles/iview.css'
import filter from './filter'
import directives from './directives'

directives(Vue)
// 过滤器
filter(Vue)
Vue.use(iView)
Vue.prototype.$http = api
Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  template: '<App/>',
  components: {App}
})
